﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="EditProjectTree.aspx.cs" Inherits="TimeWork.time.admin.EditProjectTree" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Bredcrumb" runat="server">
    <li><a href="#" class="report">Quản trị</a></li>>
    <li><a href="#">Quản lý cây danh mục</a></li>>
    <li><a href="#">Thêm mới/Cập nhật</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form id="FrmEditProjectTree" runat="server">
        <div class="info-box">
            <h3>
                <asp:Label ID="lblTitle" runat="server"></asp:Label>
            </h3>
            <table>
                <tr>
                    <td>Tên danh mục*:</td>
                    <td style="width: 402px">
                        <asp:TextBox ID="txtProjectName" runat="server" Width="384px"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="vtxtProjectName" runat="server" 
                            ErrorMessage="*" ForeColor="#CC0000" ControlToValidate="txtProjectName"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>Mã*:</td>
                    <td style="width: 402px">
                        <asp:TextBox ID="txtProjectCode" runat="server" Width="89px"></asp:TextBox>
                        &nbsp;<asp:RequiredFieldValidator ID="vtxtProjectCode" runat="server" 
                            ErrorMessage="*" ForeColor="#CC0000" ControlToValidate="txtProjectCode"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>Chọn danh mục cha:</td>
                    <td style="width: 402px">
                        <asp:DropDownList ID="ddlParentID" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>Ghi chú:</td>
                    <td style="width: 402px">
                        <asp:TextBox ID="txtProjectDescription" runat="server" TextMode="MultiLine" 
                            Height="83px" Width="384px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <asp:Button ID="btnDelete" runat="server" Text="Xóa" 
                        CssClass="mybutton color-red" CausesValidation="False" 
                            OnClientClick="return confirm('Bạn chắc chắn muốn xóa danh mục này?');" 
                            onclick="btnDelete_Click" />
                    </td>
                    <td align="right">
                        <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" 
                        CssClass="mybutton" onclick="btnUpdate_Click" />
                        <asp:Button ID="btnCreate" runat="server" Text="Tạo mới" 
                        CssClass="mybutton" onclick="btnCreate_Click" />&nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="Hủy bỏ" 
                        CssClass="mybutton color-yellow" CausesValidation="False" 
                            onclick="btnCancel_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </form>
</asp:Content>
